How to read and write data in firebase and swift